import { defineStore } from "pinia";
import { ref } from "vue";

// 定义用户状态仓库
export const settingConfigStore = defineStore(
  "settingConfig",
  () => {
    const configInfo = ref({});

    const setConfigInfo = (value) => {
      configInfo.value = value;
    };
    return {
      configInfo,
      setConfigInfo,
    };
  },
  {
    // 开启持久化（使用本地存储，默认是localStorage）
    persist: true,
  }
);
